import { obtainVolitionProject } from '../../../config/api'
import * as actionTypes from './actionTypes';

const getVolitionPlan = (data) => ({
	type: actionTypes.Get_Volition_Plan,
	data
});

// 获取 意志计划 数据
export const acquireVolitionPlanData = () => {
	return async (dispatch) => {
		const resultInfo = await obtainVolitionProject()
		console.log(resultInfo.data, '获取 意志计划 数据')
		dispatch(getVolitionPlan(resultInfo.data));
	}
};